package com.dayaokeji.rhythmschoolstudent.client.home.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.databases.model.Notification;

import java.util.List;

/**
 * Created by Gorden on 2017/9/29.
 */

public class BulletinAdapter extends BaseQuickAdapter<Notification,BaseViewHolder>{

    public BulletinAdapter(@Nullable List<Notification> data) {
        super(R.layout.item_notice_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Notification item) {
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_content,item.getContent());
    }
}
